home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.concentric.net!not-for-mail
- From: SCLARK74@CRIS.COM (Steve Clark)
- Newsgroups: comp.lang.c
- Subject: Re: Trouble after executing spawnlp()
- Date: 16 Apr 1996 14:25:43 -0400
- Organization: Concentric Internet Services
- Sender: Sclark74@mariner.cris.com
- Message-ID: <Ka/cxUJdkXGI088yn@CRIS.COM>
- References: <RnqbxUJdkXGb088yn@CRIS.COM> <012341Z16041996@anon.penet.fi>
- NNTP-Posting-Host: mariner.cris.com
-
- In article <012341Z16041996@anon.penet.fi>,
- an25305@anon.penet.fi (Cdr. Coriander Salamander) wrote:
- >In article <RnqbxUJdkXGb088yn@CRIS.COM>, SCLARK74@CRIS.COM (Steve Clark) writes:
- >> In a program I am writing, I use the spawnlp() function to run another
- >> small program. After the call to spawnlp(), I always get a null file
- >> pointer when trying to open a text file. What kind of things would
- >> cause this to happen?
- >
- >The other small program contained a virus,
- >and deleted all your files?
- >
- >--****ATTENTION****--****ATTENTION****--****ATTENTION****--***ATTENTION***
- >Your e-mail reply to this message WILL be *automatically* ANONYMIZED.
- >Please, report inappropriate use to abuse@anon.penet.fi
- >For information (incl. non-anon reply) write to help@anon.penet.fi
- >If you have any problems, address them to admin@anon.penet.fi
-
- Not quite. Actually I knew the file existed I just couldn't read it in
- one particular function. It turned out that I had a variable defined
- as:
-
- char *reload = "/E";
-
- which was causing the problem. I changed it to
-
- char reload[60];
-
- and then:
-
- strcpy(reload, "/E");
-
- and Everything's fine now. However, I still don't understand why this
- would cause a problem like that. Any ideas?
-
- Steve Clark
- CompuServe: 75027,3554
- Internet: sclark74@cris.com
-
-
-